﻿package org.xhs.report.doc.model
{
    import __AS3__.vec.*;
    import flash.events.*;

    public class DocZoomModel extends EventDispatcher
    {
        protected var _zoomLevel:int = 0;
        protected var _zoomValues:Vector.<Number>;
        protected var _zoomLevelNum:int = 5;
        public static const ZOOM_CHANGED:String = "ZOOM_CHANGED";
        public static const ZOOM_LEVELS:Array = [-1, 1, 1.5, 2, 3];

        public function DocZoomModel(param1:IEventDispatcher = null)
        {
            super(param1);
            this._zoomLevelNum = ZOOM_LEVELS.length;
            this._zoomValues = new Vector.<Number>(this._zoomLevelNum);
            return;
        }// end function

        public function get zoomLevel() : int
        {
            return this._zoomLevel;
        }// end function

        public function set zoomLevel(param1:int) : void
        {
            this._zoomLevel = param1;
            dispatchEvent(new Event(ZOOM_CHANGED));
            return;
        }// end function

        public function get zoomValues() : Vector.<Number>
        {
            return this._zoomValues;
        }// end function

        public function set zoomValues(param1:Vector.<Number>) : void
        {
            this._zoomValues = param1;
            return;
        }// end function

        public function get zoomLevelNum() : int
        {
            return this._zoomLevelNum;
        }// end function

    }
}
